package com.hfzy.ihk.web.calldata.conf;

import com.hfzy.ihk.common.support.redis.RedisConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * Created by Administrator on 2018/1/29.
 *
 *  当前版本elasticSearch的封装使用依赖redis来控制版本，所以必须配置redis
 * @author wws
 */
@Configuration
@Import(RedisConfig.class)
public class ElasticSearchConfig {

    @Value("${spring.profiles.active}")
    public String  profile;

    public String indexName() {
        return "hf_call_data_"+profile;
    }

}
